package com.example.zsgc.service.impl;

import com.example.zsgc.entity.Flower;
import com.example.zsgc.mapper.FlowerMapper;
import com.example.zsgc.service.FlowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FlowerServiceImpl implements FlowerService {

    @Autowired
    private FlowerMapper flowerMapper;

    @Override
    public List<Flower> getFl( String name,Integer page,Integer size) {
        return flowerMapper.getFl(name,page,size);
    }

    @Override
    public Integer getNum() {
        return flowerMapper.getNum();
    }
}
